<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
	<div ng-controller="configController">
		<div ng-path></div>

		<div>
			<form class="form-horizontal">
				<div class="form-group" ng-show="cm.isShowMsg">
					<div class="col-sm-offset-2 col-sm-5">
						<div class="alert alert-dismissible fade in custom-alert"
							role="alert"
							ng-class="cm.result==1?'alert-success':'alert-danger'">
							{{cm.message}}</div>
					</div>
				</div>

				<div class="form-group" ng-repeat="conf in cm.configlist">
					<label class="col-sm-2 control-label">{{conf.name}}</label>
					<div class="col-sm-5">
						<input type="text" class="form-control" ng-model="conf.value" />
					</div>
				</div>
				<div class="form-group" ng-show="cm.configlist.length > 0">
					<div class="col-sm-offset-2 col-sm-5">
						<shiro:hasPermission name="config:edit">
							<button type="button" class="btn btn-primary"
								ng-click="cm.edit()">提交</button>
							<button type="button" class="btn btn-info" ng-click="cm.query()">还原</button>
						</shiro:hasPermission>
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>